﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _01_类和结构
{
    class Program
    {
        static void Main(string[] args)
        {
            StudentClass studentclass = new StudentClass();
            StudentStruct studentstruct = new StudentStruct();
            Console.WriteLine(studentclass.StudentId);//0
            Console.WriteLine(studentstruct.StudentId);//0
            Console.ReadKey();
        }
    }

    //类
    class StudentClass
    {
        public int StudentId { get; set; }
        public string StudentName { get; set; }
       
    }

    //结构
    struct StudentStruct
    {
        public int StudentId { get; set; }
        public string StudentName { get; set; }
    }
}
